package de.jmda.fx.node.behaviour;

import javafx.scene.Node;
import javafx.scene.Scene;

public class BehaviourMouseDraggingConstraint
{
	private double minX;

	private double minY;

	private double maxX;

	private double maxY;

	public BehaviourMouseDraggingConstraint(
			double minX, double minY, double maxX, double maxY)
	{
		super();

		this.minX = minX;
		this.minY = minY;
		this.maxX = maxX;
		this.maxY = maxY;
	}

	public BehaviourMouseDraggingConstraint(Scene scene)
	{
		this(0, 0, scene.getWidth(), scene.getHeight());
	}

	public BehaviourMouseDraggingConstraint(Node node)
	{
		this(node.getScene());
	}

	public double getMinX()
	{
		return minX;
	}

	public double getMinY()
	{
		return minY;
	}

	public double getMaxX()
	{
		return maxX;
	}

	public double getMaxY()
	{
		return maxY;
	}
}